// import { AddCart, DelCollect, DoCollect } from '@/network/goods.js'
const state = {
}
const mutations = {
}

const actions = {
	// 添加到购物车
	async goodsAddToCart({commit}, params) {
		let res = await AddCart(params);
		if(res && res.code === 100200) {
			return true
		}
		return false;
	},
	// 取消收藏
	async goodsDelCollect({commit}, params) {
		let res = await DoCollect(params);
		if(res && res.code === 100200) {
			return true
		}
		return false;
	},
}
	
export default {
  state,
  mutations,
  actions
}
